import request from '@/utils/request'

// 创建用户评价
export function createUserAssess(data) {
  return request({
    url: '/youqu/user-assess/create',
    method: 'post',
    data: data
  })
}

// 更新用户评价
export function updateUserAssess(data) {
  return request({
    url: '/youqu/user-assess/update',
    method: 'put',
    data: data
  })
}

// 删除用户评价
export function deleteUserAssess(id) {
  return request({
    url: '/youqu/user-assess/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户评价
export function getUserAssess(id) {
  return request({
    url: '/youqu/user-assess/get?id=' + id,
    method: 'get'
  })
}

// 获得用户评价分页
export function getUserAssessPage(query) {
  return request({
    url: '/youqu/user-assess/page',
    method: 'get',
    params: query
  })
}

// 导出用户评价 Excel
export function exportUserAssessExcel(query) {
  return request({
    url: '/youqu/user-assess/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
